package org.pahema.services;

import org.pahema.dao.ComprobanteDAO;
import org.pahema.model.Comprobante;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ComprobanteService {
	
	@Autowired
	private ComprobanteDAO comprobanteDAO;

	@Transactional
	public void guardarComprobante(Comprobante comprobante){
		this.getComprobanteDAO().guardarComprobante(comprobante);
	}
	
	
	
	//--- getter y setters ---
	public ComprobanteDAO getComprobanteDAO() {
		return comprobanteDAO;
	}

	public void setComprobanteDAO(ComprobanteDAO comprobanteDAO) {
		this.comprobanteDAO = comprobanteDAO;
	}
	
}
